<?php

namespace app\api\controller;

use app\api\model\User;
use app\api\trait\LoginSession;
use app\BaseController;
use app\enum\Key;
use app\exception\BusinessException;
use app\enum\StatusCode;
use app\api\middleware\Check;
use think\facade\Session;

class Auth extends BaseController
{
    use LoginSession;

    protected $middleware = [
        Check::class,
    ];



    protected function initialize(): void
    {
        parent::initialize();
        $this->getLoginUser();
    }



}
